<%@ include file="../templates/header.jsp"%>

<div id="content" class="container">
	<!-- main
    ================================================== -->
	<section id="main" class="grid9 first">
		<article>

			<s:if test="%{#session[@com.dz.utils.Constants@USER] != null}">
				<h2 class="huge">
					<s:text name="board"></s:text>
				</h2>
			</s:if>
			<s:else>
				<h2 class="huge">
					<s:text name="connexion"></s:text>
				</h2>

				<s:if
					test="%{#session[@com.dz.utils.Constants@WARNING] == @com.dz.utils.Constants@WARNING_CONNECTION}">
					<p class="postmeta">
						<span><img src="images/icons/cross.png" alt="Cross"></span>
						<span><b><s:text name="warning_connection"></s:text></b></span>
					</p>
				</s:if>

				<p>
					<s:form action="Login">
						<s:textfield key="userName" labelposition="top" />
						<s:password key="password" labelposition="top" />
						<s:submit />
					</s:form>
				</p>
			</s:else>
		</article>
	</section>
	<!-- end main -->

	<!-- sidebar
	================================================== -->
	<%@ include file="../templates/menuAccount.jsp"%>

</div>

<%@ include file="../templates/footer.jsp"%>